package com.qishon.pc.domain.model;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by yuquan.hu on 2016/12/23.
 */
@Data
public class ProgressControl {
    private int id;
    private String girard;
    private String progress;
    private int version;
    private int curNode;
    private List<ProgressSteps> progressStepsList;
    private int listCount;
    private float ratio;
    private int proStatus;

    public int getListCount() {
        return progressStepsList.size();
    }
    public float getRatio() {
        return listCount == 0 ? 0 : Math.round(10000f / (listCount * 1.0f))/100f ;
    }

    /**
     * 分辨率
     */
    private List<String> imageTypes;
}
